﻿using System;
using RanchBuddy.Core.Domain.Impl;
using RanchBuddy.Core.Services.Impl;
using StructureMap;

namespace RanchBuddy.Core.DataAccess.Impl
{
    [Serializable]
    [Pluggable("Default")]
    public class Connection : IConnection
    {
        public RanchBuddyDataContext GetLsContext()
        {
            string connString = ConfigurationService.GetRanchBuddyLsConnectionString();

            RanchBuddyDataContext dc = new RanchBuddyDataContext(connString);
            dc.CommandTimeout = 60;
            return dc;
        }
    }
}